using Abp.Dapper.Repositories;
using Abp.Data;
using JYJ.AiYard.Authorization.Roles;
using JYJ.AiYard.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;
using Abp.Dependency;

namespace JYJ.AiYard.Database
{
    /// <summary>
    /// dapper仓储，这里写为role类型,实际并不依赖Role,只是用依赖注入来获取dapper实例和相关函数
    /// 默认使用数据库会话为 AiYardDbContext
    /// </summary>
    public class YoYoDapperRepository : DapperEfRepositoryBase<AiYardDbContext, Role>, ITransientDependency
    {
        private readonly IActiveTransactionProvider _activeTransactionProvider;
        public YoYoDapperRepository(IActiveTransactionProvider activeTransactionProvider)
            : base(activeTransactionProvider)
        {
            _activeTransactionProvider = activeTransactionProvider;
        }
    }
}
